public class connectionAction { 
	private long actionID;
	private String actionCommand;
	
	public static final int c_onClik=1;
	public static final int c_onOk = 2;
	public static final int c_onFail = 4;
	private int actionType;
	
	private boolean onClik=false;
	private boolean onOk=false;
	private boolean onFail=false;
	
	public long getActionID() {
		return actionID;
	}
	public void setActionID(long actionID) {
		this.actionID = actionID;
	}
	public String getActionCommand() {
		return actionCommand;
	}
	public void setActionCommand(String actionCommand) {
		this.actionCommand = actionCommand;
	}
	public int getActionType() {
		return actionType;
	}
	public void setActionType(int actionType) {
		this.actionType = actionType;
		switch (actionType) {
		case c_onClik:
			setOnClik(true);
			break;
		case c_onOk:  
			setOnOk(true);
			break;
		case c_onFail: 
			setOnFail(true);
			break;
		case c_onClik+c_onOk:
			setOnClik(true);
			setOnOk(true);
			break;
		case c_onClik+c_onFail:
			setOnClik(true);
			setOnFail(true);
			break;
		case c_onFail+c_onOk: 
			setOnOk(true);
			setOnFail(true);
			break;
		case c_onFail+c_onOk+c_onClik:
			setOnOk(true);
			setOnFail(true);
			setOnClik(true);
			break;
		}
	}
	public boolean isOnClik() {
		return onClik;
	}
	public void setOnClik(boolean onClik) {
		this.onClik = onClik;
	}
	public boolean isOnOk() {
		return onOk;
	}
	public void setOnOk(boolean onOk) {
		this.onOk = onOk;
	}
	public boolean isOnFail() {
		return onFail;
	}
	public void setOnFail(boolean onFail) {
		this.onFail = onFail;
	}
}